QT += network \
    xml

# ## DEFINES are:
# # NOSINGLEAPP - do not use singleapplication. Allows running several instances of ImageHold
# # NOPREVIEW - turns off preview (thumbnails) generating. May speed up ImageHold GUI
# # DEBUG_MIME - do not work as uploader, just debug the QMimeType
DEFINES += NOSINGLEAPP # NOPREVIEW #NOIMAGEWINDOWPREVIEW #DEBUG_MIME # NOPREVIEW
TEMPLATE = app
TARGET = ImageHold
TRANSLATIONS += imagehold_ru.ts
include(../config.pri)
include(../common/PluginsInterface.pri)
include(../contrib/contrib.pri)
DEPENDPATH += . \
    libs \
    widgets
INCLUDEPATH += . \
    libs \
    widgets
HEADERS += MyForm.h \
    widgets/historyWidget.h \
    widgets/PreviewWidget.h \
    aboutplugins.h \
    pluginslist.h \
    myapp.h \
    trayicon.h \
    mytranslator.h \
    MyFormBase.h \
    SelectPluginButton.h \
    widgets/histScrollArea.h \
    widgets/queueArea.h

# libs/freedesktopmime.h \
# libs/singleapplication.h \
# libs/singleapplication_p.h \
FORMS += MyForm.ui \
    widgets/historyWidget.ui \
    widgets/PreviewWidget.ui \
    widgets/showLinks.ui
SOURCES += main.cpp \
    MyForm.cpp \
    widgets/historyWidget.cpp \
    widgets/PreviewWidget.cpp \
    aboutplugins.cpp \
    pluginslist.cpp \
    myapp.cpp \
    trayicon.cpp \
    mytranslator.cpp \
    MyFormBase.cpp \
    widgets/histScrollArea.cpp \
    widgets/queueArea.cpp

# libs/freedesktopmime.cpp \
# libs/singleapplication.cpp \
RESOURCES += Resources.qrc
kde { 
    SERVICEMENU.path = $$KDE_DIR"share/apps/konqueror/servicemenus"
    SERVICEMENU.files = $$TARGET"_srvm.desktop"
    INSTALLS += SERVICEMENU
    ICON.path = $$KDE_DIR"share/icons"
    DESKTOP.path = $$KDE_DIR"share/applnk"
}
else { 
    DESKTOP.path = $$prefix"/share/applications"
    ICON.path = $$prefix"/share/pixmaps"
}
ICON.files = ../icons/ImageHold.png
DESKTOP.files = $$TARGET".desktop"
INSTALLS += ICON \
    DESKTOP
